<!-- 商店 -->
<template>
	<view class="fixed-shop" @click="handleNavTo('/pagesC-shopping/shop/index')">
		<image class="pic" src="/pagesC-message/static/images/will-delete/4.png" mode="aspectFill"></image>
		<view class="content">
			<text class="name">鱼米之乡农资站</text>
			<text class="label">农药种子化肥农用物资</text>
		</view>
	</view>
</template>

<script setup>
	import { useChatStore } from "../store.js";
	
	const handleNavTo = (url) => {
		uni.navigateTo({
			url
		});
		useChatStore().SET_HIDE_OTHERS_PANEL();
	}
</script>

<style lang="scss" scoped>
	.fixed-shop {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
		height: 200rpx;
		background-color: white;
		padding: 0 30rpx;
		box-sizing: border-box;

		&::after {
			position: absolute;
			bottom: 0;
			left: 30rpx;
			display: block;
			content: '';
			width: calc(100% - 60rpx);
			height: 1px;
			transform: scaleY(0.5);
			background-color: #E5E5E5;
		}

		.pic {
			flex-shrink: 0;
			width: 120rpx;
			height: 120rpx;
			border-radius: 10rpx;
		}

		.content {
			flex-grow: 1;
			width: 0;
			padding-left: 25rpx;

			.name {
				display: block;
				width: 100%;
				font-weight: bold;
				font-size: 30rpx;
				color: #222222;
				line-height: 1.5;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}

			.label {
				display: block;
				width: 100%;
				font-size: 28rpx;
				color: #999999;
				line-height: 1.5;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				margin-top: 6rpx;
			}
		}
	}
</style>